const app = getApp()
const global = app.globalData

Component({
    properties: {
        parent:{type:[Object], value:{}},
        cates:{type:[Array], value:[]},
        tpl:{type:String, value:'image'}
    },
    data: {
        imageUrl: global.imageUrl
    },
    methods: {
        cateClick(e){
            const {id} = e.currentTarget.dataset
            wx.navigateTo({
                url: `/pages/goods/list?cate_id=${id}`
            })
        }
    }
});
